#include<iostream>
#include<algorithm>
using namespace std;
int arr[11];
void fun(int n)
{
	int t = n;
	while (t) {
		arr[t % 10]++;
		t /= 10;
	}
}
int main()
{
	int n, m;
	cin >> m >> n;
	if (m > n) {
		swap(m, n);
	}
	for (int i = m; i <= n; i++) {
		fun(i);
	}
	for (int i = 0; i < 10; i++) {
		if (i == 0) {
			cout << arr[0];
		}
		else {
			cout << " " << arr[i];
		}
	}
	return 0;
}